<template>
  <div class="container">
    <div v-for="(item, index) in data" :class="[index<3?'info_item1':'info_item2']" :key="index">
      <span class="name"><i class="tip"></i>{{ item.name }}</span>
      <span>{{ item.value }}</span>
    </div>
  </div>
</template>
<script setup>
import { defineProps } from 'vue';
const props = defineProps({
  data: {
    type: Array,
    default: () => []
  }
});
</script>
<style lang="less" scoped>
.container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.info_item1,
.info_item2 {
  height: 50%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  white-space: nowrap;
  overflow: hidden;
}
.info_item1 {
  width: 33.33%;
}

.info_item2 {
  width: 40%;
}
.name {
  position: relative;
  color: #9bd5ff;
  padding-left: 1.25rem;
}

.name::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 0.25rem;
  background-color: #3ec92e;
  left: 0;
  top: calc(50% - 0.25rem);
  position: absolute;
}
</style>
